export function getCookie(name) {
  const reg = new RegExp(`(?:^| )${name}=(.+?)(?=(;|$))`);
  return document.cookie.match(reg)?.[1];
}
